<template>
  <div class="card-container">
    <div class="card-title">
      <img src="@/assets/images/title-card.png" alt="" />
      <div class="text">{{ title }}</div>
    </div>
    <div class="card-content">
      <slot name="content"></slot>
    </div>
  </div>
</template>

<script setup>
import { ref, onMounted } from "vue";

const props = defineProps({
  // 操作类型
  title: {
    type: String,
    default: "",
  },
});
</script>

<style scoped lang="scss">
.card-container {
  position: relative;
  width: 100%;
  height: 100%;
  background-color: #ffffff;
  box-shadow: 0px 0px 6px 0px rgba(0, 0, 0, 0.1);
  border-radius: 10px;
  padding: 10px 30px 20px 30px;
  .card-title {
    display: flex;
    align-items: center;
    height: 40px;
    border-bottom: 1px solid #f6f6f6;
    .text {
      margin-left: 10px;
      font-size: 16px;
      color: #000000;
    }
  }
  .card-content {
    height: 100%;
  }
}
</style>
